<template>
  <div class="session-wrapper">
    <div class="ui container">
      <div class="session-body">
        <!-- <div class="session-sidebox">
          <side-box/>
        </div> -->
        <div class="session-form">
          <login-form/>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import SideBox from './SideBox'
import LoginForm from './Form'
export default {
  name: 'Login',
  components: {
    SideBox, LoginForm
  },
  data () {
    return {
      show: true,
      content: 'content',
      eyeshow: true
    }
  }
}
</script>
<style scoped="scoped" lang="less">
  // 可以做左右分栏。目前只做表单一边
  @boxWidth: 465px;
  *, *:before, *:after {
    -webkit-box-sizing: inherit;
    box-sizing: inherit;
  }
  .session-wrapper{
    min-width: @boxWidth;
    min-height: 99.9vh;
    position: relative;
  }
  .session-wrapper:before {
    width: 394px;
    height: 468px;
    background-image: url('~@/assets/login/bg-left.png');
    left: 0;
  }
  .session-wrapper:after {
    width: 487px;
    height: 412px;
    background-image: url('~@/assets/login/bg-right.png');
    right: 0;
  }
  .session-wrapper:before, .session-wrapper:after {
    content: '';
    position: fixed;
    bottom: 0;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: -2;
  }
  .ui.container{
    position: absolute;
    top: 50%;
    left: 50%;
    width: @boxWidth;
    padding: 0;
    z-index: 1;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    margin: 0 auto;
  }
  .session-body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin: auto;
    width: inherit;
    position: relative;
    -webkit-box-shadow: 0px 20px 80px 0px rgba(0,0,0,0.3);
    box-shadow: 0px 20px 80px 0px rgba(0,0,0,0.3);
  }
  .session-body:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    background: #fff;
    z-index: -1;
  }
  .session-sidebox, .session-form {
    margin: 0 auto;
    width: 100%;
    min-height: 564px;
  }
  .session-sidebox {
    color: #fff;
    position: relative;
    padding: 80px 80px 48px;
    background: -webkit-gradient(linear, left bottom, left top, from(#3a485a), to(#607089));
    background: linear-gradient(0deg, #3a485a 0%, #607089 100%);
  }
  .session-sidebox::before, .session-sidebox::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
  }
  .session-sidebox::before {
    background: url('~@/assets/login/left.png') no-repeat 0 0;
  }
</style>
